import request from '@/utils/request'
import type { screenResponseData, subentryResponseData, fluctuantResponseData } from './type'

enum API {
  SCREENINFO_URL = '/screen/info',
  SUBENTRYINFO_URL = '/subentry/info',
  FLUCTUANTINFO_URL = '/fluctuant/info',
}

// 获取大屏账单列表信息
export const reqScreenInfo = (data: any) => request.post<any, screenResponseData>(API.SCREENINFO_URL, data)
// 获取大屏账单年度项列表信息
export const reqSubentryInfo = (data: any) => request.post<any, subentryResponseData>(API.SUBENTRYINFO_URL, data)
// 获取大屏账单月度项列表信息
export const reqFluctuantInfo = (data: any) => request.post<any, fluctuantResponseData>(API.FLUCTUANTINFO_URL, data)
